#!/usr/bin/python3
# -*- coding:utf-8 -*-
""""
   @Author: 叶建伟
   @Email: yejw46507@hundsun.com
   @Time: 2022/6/21 9:31
   @File: 待办事项.py
"""
import time

from 基础公共脚本.步骤检查_hui2 import FE
from 基础公共脚本.公共方法_hui2 import open_menu

def home_page_agency(input_data=None, ui_expect=None):
    for i in range(1, 10):
        open_menu({'子系统名称': '反洗钱系统', '菜单名称': '首页'})
        time.sleep(2)
        FE.button(idname={'xpath':'//tbody[@class="h-table-tbody"]/tr['+str(i)+']/td[1]/div[@class="h-table-cell h-table-cell-ellipsis"]'}).click()

def home_page_agency_more(input_data=None, ui_expect=None):
    open_menu({'子系统名称': '反洗钱系统', '菜单名称': '首页'})
    time.sleep(2)
    FE.button(idname={'xpath':'//div[@class="todo-task"]/p/a[contains(text(),"更多")]'}).click()

